package com.zjweu.hkg.POJO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    private int msgId;
    private String message;
    private int fromId;
    private int toId;
    private Date sendTime;
    private int isRead;
    private int type;

    public Message(String message, int fromId, int toId, int type) {
        this.message = message;
        this.fromId = fromId;
        this.toId = toId;
        this.type = type;

    }
}
